package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import lombok.Data;

@Data
@TableName(value = "iot_product_module")
public class IotProductModule {
    /**
     * 自增主键：代表产品创建时，添加模型的批次
     */
    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pid;

    /**
     * 序号
     */
    @TableField(value = "order_number")
    private Integer orderNumber;

    @TableField(value = "product_key")
    private String productKey;

    @TableField(value = "module_code")
    private String moduleCode;

    @TableField(value = "module_name")
    private String moduleName;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modify")
    private LocalDateTime gmtModify;

    @TableField(value = "created_by")
    private String createdBy;

    @TableField(value = "modified_by")
    private String modifiedBy;

    /**
     * 是否删除，1已删除
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;
}